<template>
  <AppTopnav></AppTopnav>
  <!-- 普通头部布局 -->
  <AppHeader></AppHeader>
  <!-- 固定的头部布局 -->
  <AppHeaderSticky></AppHeaderSticky>
  <main>
    <!-- 二级路由 -->
    <RouterView></RouterView>
  </main>
  <AppFooter></AppFooter>
</template>

<script>
import AppTopnav from '@/components/app-topnav.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import { useStore } from 'vuex'
export default {
  components: { AppTopnav, AppHeader, AppFooter, AppHeaderSticky },
  name: 'xtx-layout',
  setup () {
    const store = useStore()
    store.dispatch('category/findList')
  }
}
</script>

<style scoped lang="less"></style>
